package com.common.constant;

public enum ResCodeEnum  {


    SUCCESS(BaseConst.ResCode.SUCCESS, "成功"),
    ERROR(BaseConst.ResCode.ERROR, "系统错误"),

    BAD_REQUEST(400, "错误的请求"),
    NO_AUTH(401, "没有访问权限"),
    BAD_GATEWAY(502, "网关错误");

    Integer code;
    String describe;
    private ResCodeEnum(Integer code, String describe) {
        this .code=code;
        this.describe=describe;
    }

    public int getCode() {
        return this.code;
    }
    public  String getDescribe(){
        return this.describe;
     }
}